function sureAddBook() {
    var bookName = $("#input_note").val().trim();
//console.log(bookName);
    if (bookName == "") {
        alert("笔记本名称不能为空")
        return;
    }
//发送ajax请求
    $.ajax({
        url: base_url + "/notebook/add.do",
        type: "post",
        data: {"userId": userId, "bookName": bookName},
        dataType: "json",
        success: function (result) {
// console.log(result);
            if (result.status == 0) {
                closeWindows();
//添加一个笔记本li
                var bookId = result.data;
                createBookLi(bookName, bookId)
                alert(result.msg);
            }
        },
        error: function () {
            alert("添加笔记本失败");
        }
    })

}